package com.ugoodtech.mdcc.core.domain;

import com.ugoodtech.mdcc.core.domain.BaseEntity;
import com.ugoodtech.mdcc.core.domain.ComplaintReportTemp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("暂存投诉单答案")
@Entity
@Table(name = "complaint_report_data_temp")
public class ComplaintReportDataTemp extends BaseEntity {

    @ApiModelProperty("问题ID")
    private Long questionId;

    @ApiModelProperty("答案ID")
    private String answerId;

    @ApiModelProperty("文本框答案")
    private String answerOther;

    @ApiModelProperty("暂存投诉单")
    private ComplaintReportTemp complaintReportTemp;

    @Column(name = "question_id")
    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    @Column(name = "answer_id")
    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    @Column(name = "answer_other_id")
    public String getAnswerOther() {
        return answerOther;
    }

    public void setAnswerOther(String answerOther) {
        this.answerOther = answerOther;
    }

    @ManyToOne
    @JoinColumn(name = "complaint_report_id")
    public ComplaintReportTemp getComplaintReportTemp() {
        return complaintReportTemp;
    }

    public void setComplaintReportTemp(ComplaintReportTemp complaintReportTemp) {
        this.complaintReportTemp = complaintReportTemp;
    }

}
